$mainMod   = SUPER
$hyprDir   = ~/.config/hypr
$wallpaper = ~/.wallpapers/wallpaper.jpg
$term = foot --config $hyprDir/foot/foot.ini
# $term = kitty --config $hyprDir/kitty/kitty.conf

# MAIN
bind = $mainMod, D, exec, $term
bind = $mainMod, Return, exec, $term
bind = $mainMod, Q, killactive, 
bind = $mainMod, M, exec, rofi-loginmenu
bind = $mainMod, E, exec, hyprpicker | wl-copy
bind = $mainMod, Space, togglefloating, 
bind = $mainMod, R, exec, rofi -show drun -show-icons -config $hyprDir/rofi/config.rasi
bind = $mainMod ALT, R, exec, rofi -show run -config $hyprDir/rofi/config.rasi
bind = $mainMod, A, togglesplit, # dwindle
bind = $mainMod CTRL, L, exec, swaylock -i $wallpaper --config $hyprDir/swaylock/config

# Screenshot
bind = ,      Print, exec, grim -c -g "$(slurp -d)" - | wl-copy -t image/png
bind = SHIFT, Print, exec, grim -c - | wl-copy -t image/png

# WINDOWS
# Move focus, vim style
bind = $mainMod, H, movefocus, l
bind = $mainMod, L, movefocus, r
bind = $mainMod, K, movefocus, u
bind = $mainMod, J, movefocus, d

# Move window, vim style
binde=$mainMod SHIFT, L, swapwindow, r
binde=$mainMod SHIFT, H, swapwindow, l
binde=$mainMod SHIFT, K, swapwindow, u
binde=$mainMod SHIFT, J, swapwindow, d

# Resize, vim style
binde=$mainMod ALT, L, resizeactive, 20 0
binde=$mainMod ALT, H, resizeactive, -20 0
binde=$mainMod ALT, K, resizeactive, 0 -20
binde=$mainMod ALT, J, resizeactive, 0 20

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

# WORKSPACES
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10

# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10

# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1

